package common

const (
	SuccessCode = 0
	FailCode    = -1
)

type Response struct {
	Code    int
	Message string
	Data    interface{}
}

func NewCommonResponse() Response {

	return Response{
		Code:    0,
		Message: "success",
	}

}

const (
	CodeClusterListFail = 1000001
	CodeUserListFail    = 1000002
	CodeRecordListFail  = 1000003
	CodeTestListFail    = 1000005
	CodeTestCreateFail  = 1000006
	MsgClusterListFail  = "cluster list fail"
	MsgRecordListFail   = "record list fail"
	MsgUserListFail     = "user list fail"
	MsgTestListFail     = "test list fail"
	MsgTestCreateFail   = "test create fail "
)
